package com.junlong0716.enjoylearning.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 *@author: 巴黎没有摩天轮Li
 *@description:
 *@date: Created in 下午5:23 2018/6/2
 *@modified by:
 */

class ChannelViewpagerAdapter(fm: FragmentManager, fragments: ArrayList<Fragment>) : FragmentPagerAdapter(fm) {

    private var fragments = fragments

    override fun getItem(position: Int): Fragment = fragments[position]

    override fun getCount(): Int = fragments.size

}